import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import dataservice.JWTeacherDataService;
import businesslogic.LoginBl.LoginController;


public class test {

	public static void main(String[] args) throws RemoteException {
		JWTeacherDataService data=null;
		try {
			data = (JWTeacherDataService)Naming.lookup("RMI_JWTeacherData");
			System.out.println("recieve");
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NotBoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(data.find(12345));
	}


}
